s = "中文"

# 编码与解码
# 乱码：当编码与解码不一致时会出现乱码
print(s.encode())
print(s.encode("utf-8").decode("utf-8"))



# 指定正确的编码格式读取数据
with open("../../data/a.txt", encoding="GBK", mode="r") as f:
    print(f.readlines())
